package io.github.bigbird0101.datatransfer.constant;

public interface Constant {

    String EMPTY_ARRAY_JSON = "[]";
    String EMPTY_OBJECT_JSON = "{}";

    String TASK_ID = "taskId";
    String READER_NAME = "reader.name";
    String READER_PARAMETER = "reader.parameter";

    String WRITER_NAME = "writer.name";
    String WRITER_PARAMETER = "writer.parameter";

    /**
     * channel配置
     */
    String CHANNEL_SETTING = "setting.channel";


    /**
     * 数据转换
     */
    String TRANSFORMATION = "transformation";
    String DATA_FILTER = "dataFilter";
    String DATA_REPLACE = "dataReplace";
    String DATA_MASKING = "dataMasking";

    /**
     * 转换函数参数名称
     */
    String COLUMN = "column";
    String FILTER_TYPE = "filterType";
    String VALUE = "value";
    String OPERATOR = "operator";
    String OLD_VALUE = "oldValue";
    String NEW_VALUE = "newValue";
    String MATCH = "match";
    String CASE_SENSITIVE = "caseSensitive";
    String IS_ALL_MATCHING = "isAllMatching";
    String NOTICE_CASE = "noticeCase";

    String MATCH_FULL = "full";

    String MATCH_FUZZ = "fuzz";


    /**
     * channel 默认参数值
     */
    int CHANNEL_CAPACITY_DEFAULT = 4048; // 2048

    long CHANNEL_SPEED_BYTE_DEFAULT = 1024 * 1024 * 1024;

    long CHANNEL_SPEED_RECORD_DEFAULT = 10000; // 512

    int CHANNEL_CAPACITY_BYTE_DEFAULT = 8 * 1024 * 1024;

    long CHANNEL_FLOWCONTROLINTERVAL_DEFAULT = 1000;


}
